package com.example.demo.zhoushengwen.service.impl;

import com.example.demo.zhoushengwen.exceptionHandling.ExceptionCast;
import com.example.demo.zhoushengwen.response.CommonCode;
import com.example.demo.zhoushengwen.service.ExceptionTestService;
import org.springframework.stereotype.Service;

@Service
public class ExceptionTestServiceImpl implements ExceptionTestService {
    @Override
    public void testException() {

        //可预知异常处理
        if (true) {
            ExceptionCast.cast(CommonCode.FORESEE_EXCEPTION);
        }

    }
}
